﻿using System;

namespace JZ_17_da_yin_cong_1dao_zui_da_de_nwei_shu_lcof
{
    class Program
    {
        static void Main (string[] args)
        {
            Console.WriteLine (new Solution().PrintNumbers(1));
        }
    }

    public class Solution
    {
        public int[] PrintNumbers (int n)
        {
            int[] nums = new int[(int)Math.Pow (10, n) - 1];

            for (int i = 0;i < nums.Length;)
            {
                nums[i] = i + 1;
                nums[i + 1] = i + 2;
                nums[i + 2] = i + 3;
                nums[i + 3] = i + 4;
                nums[i + 4] = i + 5;
                nums[i + 5] = i + 6;
                nums[i + 6] = i + 7;
                nums[i + 7] = i + 8;
                nums[i + 8] = i + 9;
                i = i + 9;
            }

            return nums;
        }
    }
}
